﻿@model ModuleModel
@@model @Model.View

<div class="col">
    <div class="widget-box">
        <div class="widget-header">
            <span class="icon fa fa-th-list"></span>
            <h5>@@Headers.@Model.Model</h5>
        </div>
        <div class="widget-content">
            <form asp-antiforgery="true">
                @foreach (PropertyInfo property in Model.Properties)
                {
                <div class="form-group">
                    <div class="control-label col-xs-12 col-md-3 col-lg-2">
                        <label for="@property.Name"></label>
                    </div>
                    <div class="control-content col-xs-12 col-md-9 col-lg-5">
                        @if (typeof(DateTime?).IsAssignableFrom(property.PropertyType))
                        {
                        <input asp-for="@property.Name" class="form-control datepicker" asp-format="{0:d}" autocomplete="off" />
                        }
                        else
                        {
                        <input asp-for="@property.Name" class="form-control" autocomplete="off" />
                        }
                    </div>
                    <div class="control-validation col">
                        <span asp-validation-for="@property.Name"></span>
                    </div>
                </div>
                }
                <div class="form-group">
                    <div class="form-actions col-xs-12 col-lg-7">
                        <input class="btn btn-primary" type="submit" value="@@Actions.Submit" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
